﻿namespace FFF.Test.Application.Repositories.FW
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using Abp.Application.Services.Dto;
    using Abp.AutoMapper;
    using FFF.Test.Entity.FW;
    using FFF.Test.Entity.FW.View;

    /// <summary>
    /// 1.002 获取菜单(于大明)输入dto
    /// </summary>
    public class GetFunctionMenuInDto
    {
        /// <summary>
        /// 菜单层的GUID
        /// </summary>
        public Guid FunctionGUID { get; set; }

        /// <summary>
        /// 是否取顶级菜单
        /// </summary>
        public byte IsTopMenu { get; set; }
    }

    /// <summary>
    /// 1.002 获取菜单(于大明)输出dto
    /// </summary>
    public class GetFunctionMenuOutDto : EntityDto<string>
    {
        /// <summary>
        /// 菜单的集合
        /// </summary>
        public List<FunctionMenuDto> MenuDtos { get; set; }
    }

    /// <summary>
    /// 菜单的Dto
    /// </summary>
    public class FunctionMenuDto
    {
        /// <summary>
        /// 菜单GUID
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 父级ID的值
        /// </summary>
        public Guid? Pid { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string State { get; set; }

        /// <summary>
        /// 功能的图标
        /// </summary>
        public string IconCls { get; set; }

        /// <summary>
        /// 菜单的名称
        /// </summary>
        public string Text { get; set; }

        /// <summary>
        /// 菜单对应的URl
        /// </summary>
        public string Url { get; set; }
    }
}
